package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Message;
import cn.sumpu.app.guoguojie.domain.Ext.MessageExt;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface MessageDao {
	
	public List<Message> getMessageList(Map<String,Object> map)throws AppBusinessException;
	
	public int getMessageListCount(Map<String,Object> map)throws AppBusinessException;
	
	public List<MessageExt> getMessageFriend(Map<String,Object> map)throws AppBusinessException;
	
	public int getMessageFriendCount(Map<String,Object> map)throws AppBusinessException;
	
	public List<MessageExt> getMessageInner(Map<String,Object> map)throws AppBusinessException;
	
	public int getMessageInnerCount(Map<String,Object> map)throws AppBusinessException;
	
	public void insertMessage(Message message)throws AppBusinessException;
	
	public void deleteMessageById(String identifier)throws AppBusinessException;
	
	public void deleteMessageByFamily(String member)throws AppBusinessException;
	
	public int getMessageNoReadCount(Map<String,Object> map)throws AppBusinessException;
	
	public void updateMessage(Map<String,Object> map)throws AppBusinessException;
	
	public void deleteMessageByReplyId(String messageByReplyId)throws AppBusinessException;
}
